import 'package:flutter/material.dart';
import './PPRoutesPath.dart';

import '../module/tabBar/PPTabBarPage.dart';
import '../module/shop/homePage/PPShopHomePage.dart';
import '../module/menu/PPMenuPage.dart';
import '../module/message/homePage/PPMessageHomePage.dart';
import '../module/mine/PPMinePage.dart';
import '../module/message/detailPage/PPMessageDetailPage.dart';
import '../module/contidion/PPConditionChoicePage.dart';
import '../module/interest/PPInterestOptionsPage.dart';
import '../module/shop/commodityDetail/PPCommodityDetailPage.dart';
import '../module/shop/commodityDetail/PPShopCommodityDetailPage.dart';
import '../module/login/PPLoginPage.dart';

final Map<String, String> routesPath = PPRoutesPath.routesPath;

class PPRoutes {

    static final Map<String, WidgetBuilder>  routes = {
        routesPath["PPTabBarPage"]: (BuildContext context) => PPTabBarPage(),
        routesPath["PPShopHomePage"]: (BuildContext context) => PPShopHomePage(title: '首页'),
        routesPath["PPMenuPage"]: (BuildContext context) => PPMenuPage(title: '菜单'),
        routesPath["PPMessageHomePage"]: (BuildContext context) => PPMessageHomePage(title: '消息'),
        routesPath["PPMinePage"]: (BuildContext context) => PPMinePage(title: '我的'),
        routesPath["PPCommodityDetailPage"]: (BuildContext context) => PPCommodityDetailPage(),        
        routesPath["PPShopCommodityDetailPage"]: (BuildContext context) => PPShopCommodityDetailPage(),
        routesPath["PPMessageDetailPage"]: (BuildContext context) => PPMessageDetailPage(),
        routesPath["PPConditionChoicePage"]: (BuildContext context) => PPConditionChoicePage(),
        routesPath["PPInterestOptionsPage"]: (BuildContext context) => PPInterestOptionsPage(title: '兴趣选择'),
        routesPath["PPLoginPage"]: (BuildContext context) => PPLoginPage(),
    };

}